package com.yfp.operation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.OrderComboDO;
import com.yfp.operation.domain.vo.SaleMarketInfoVO;
import com.yfp.operation.domain.vo.UseQueueVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 *
 * @description 针对表【order_combo】的数据库操作Mapper
 * @createDate 2024-04-19 16:48:13
 * @Entity com.yfp.operation.domain.OrderCombo
 */
public interface OrderComboMapper extends BaseMapper<OrderComboDO> {

    List<String> getUserIds(String machineId);

    List<String> getAgain(@Param("userIds") List<String> userIds);

    OrderComboDO getOrderComboByOrderId(@Param("orderId") String orderId);

    List<SaleMarketInfoVO> findByMachoineIdsPrice(@Param("machineIds") List<String> machineIds);

    List<String> clientCount(@Param("orderIds") List<String> orderIds, @Param("userIds") List<String> userIds);

    List<UseQueueVO> getBuyTime(Long couponId);

    Integer historyOrder(UseQueueVO useQueueVO);

    List<String> agedClientId();

    List<OrderComboDO> listByUserIds(@Param("userIds") List<String> userIds);

    /**
     * 指定时间开始的下单数量
     * @param clientId
     * @param createTime
     * @return
     */
    Integer getOrderCount(@Param("clientId") String clientId, @Param("createTime") Date createTime, @Param("cityName") String cityName);

    /**
     * 修改订单状态
     * @param orderId
     * @param status
     */
    void editStatusByOrderId(@Param("orderId")String orderId, @Param("status")String status);

}




